<div class="ThongBaoKetQuaAdmin">
	<div class="Title">
		<h3>Thêm chuyên mục</h3>
	</div>
	<?php
		include_once "../classes/chude_bs.php";
		include_once "../classes/chuyenmuc_bs.php";
		include_once "../classes/thuvienham.php";
		
		if(!IsAdmin())
			QuayVeTrangTruoc();
		
		$chude = new chude_bs();
		$data_chude = $chude->LayDanhSach();
	?>
	<form action="index.php?actionad=chuyenmuc_them_xuly" method="POST">
		<table width="70%" align="center" class="ThemChuyenMuc">
			<tr>
				<td width="30%">Chọn chủ đề</td>
				<td>
					<select name="ChuDe">
						<option value="0">----- Chọn chủ đề -----</option>
						<?php
							for($i = 0; $i < count($data_chude); $i++)
							{
								echo '<option value="' . $data_chude[$i]['MaChuDe'] . '">' . $data_chude[$i]['TenChuDe'] . '</option>';
							}
						?>
					</select>
				</td>
			</tr>
			<tr>
				<td>Nhập tên chuyên mục</td>
				<td>
					<input class="TenChuyenMuc" name="TenCM" type="text"/>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="submit" value="Tạo ch.mục" class="btn_submit"/>
				</td>
			</tr>
		</table>
	</form>
</div>